package com.stox.charting.ui.swing.model.price;

import com.stox.charting.ui.swing.model.ChartModel;
import com.stox.charting.ui.swing.model.Viewport;
import com.stox.core.model.IBar;

public class IBarViewport<T extends IBar> extends Viewport<T> {

	public IBarViewport(ChartModel<T> chartModel) {
		super(chartModel);
	}

	@Override
	protected double getHigh(T unit) {
		return unit.getHigh();
	}

	@Override
	protected double getLow(T unit) {
		return unit.getLow();
	}

}
